﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200043B RID: 1083
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnhanceCommonRogueBuffScRsp : IMessage<EnhanceCommonRogueBuffScRsp>, IMessage, IEquatable<EnhanceCommonRogueBuffScRsp>, IDeepCloneable<EnhanceCommonRogueBuffScRsp>, IBufferMessage
	{
		// Token: 0x17000DF3 RID: 3571
		// (get) Token: 0x060030B1 RID: 12465 RVA: 0x0008641F File Offset: 0x0008461F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnhanceCommonRogueBuffScRsp> Parser
		{
			get
			{
				return EnhanceCommonRogueBuffScRsp._parser;
			}
		}

		// Token: 0x17000DF4 RID: 3572
		// (get) Token: 0x060030B2 RID: 12466 RVA: 0x00086426 File Offset: 0x00084626
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnhanceCommonRogueBuffScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000DF5 RID: 3573
		// (get) Token: 0x060030B3 RID: 12467 RVA: 0x00086438 File Offset: 0x00084638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnhanceCommonRogueBuffScRsp.Descriptor;
			}
		}

		// Token: 0x060030B4 RID: 12468 RVA: 0x0008643F File Offset: 0x0008463F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnhanceCommonRogueBuffScRsp()
		{
		}

		// Token: 0x060030B5 RID: 12469 RVA: 0x00086448 File Offset: 0x00084648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnhanceCommonRogueBuffScRsp(EnhanceCommonRogueBuffScRsp other) : this()
		{
			this.rogueBuff_ = ((other.rogueBuff_ != null) ? other.rogueBuff_.Clone() : null);
			this.isSuccess_ = other.isSuccess_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060030B6 RID: 12470 RVA: 0x000864A0 File Offset: 0x000846A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnhanceCommonRogueBuffScRsp Clone()
		{
			return new EnhanceCommonRogueBuffScRsp(this);
		}

		// Token: 0x17000DF6 RID: 3574
		// (get) Token: 0x060030B7 RID: 12471 RVA: 0x000864A8 File Offset: 0x000846A8
		// (set) Token: 0x060030B8 RID: 12472 RVA: 0x000864B0 File Offset: 0x000846B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonBuff RogueBuff
		{
			get
			{
				return this.rogueBuff_;
			}
			set
			{
				this.rogueBuff_ = value;
			}
		}

		// Token: 0x17000DF7 RID: 3575
		// (get) Token: 0x060030B9 RID: 12473 RVA: 0x000864B9 File Offset: 0x000846B9
		// (set) Token: 0x060030BA RID: 12474 RVA: 0x000864C1 File Offset: 0x000846C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSuccess
		{
			get
			{
				return this.isSuccess_;
			}
			set
			{
				this.isSuccess_ = value;
			}
		}

		// Token: 0x17000DF8 RID: 3576
		// (get) Token: 0x060030BB RID: 12475 RVA: 0x000864CA File Offset: 0x000846CA
		// (set) Token: 0x060030BC RID: 12476 RVA: 0x000864D2 File Offset: 0x000846D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060030BD RID: 12477 RVA: 0x000864DB File Offset: 0x000846DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnhanceCommonRogueBuffScRsp);
		}

		// Token: 0x060030BE RID: 12478 RVA: 0x000864EC File Offset: 0x000846EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnhanceCommonRogueBuffScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RogueBuff, other.RogueBuff) && this.IsSuccess == other.IsSuccess && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060030BF RID: 12479 RVA: 0x0008654C File Offset: 0x0008474C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueBuff_ != null)
			{
				num ^= this.RogueBuff.GetHashCode();
			}
			if (this.IsSuccess)
			{
				num ^= this.IsSuccess.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060030C0 RID: 12480 RVA: 0x000865BA File Offset: 0x000847BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060030C1 RID: 12481 RVA: 0x000865C2 File Offset: 0x000847C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060030C2 RID: 12482 RVA: 0x000865CC File Offset: 0x000847CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueBuff_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.RogueBuff);
			}
			if (this.IsSuccess)
			{
				output.WriteRawTag(112);
				output.WriteBool(this.IsSuccess);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060030C3 RID: 12483 RVA: 0x00086644 File Offset: 0x00084844
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueBuff_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueBuff);
			}
			if (this.IsSuccess)
			{
				num += 2;
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060030C4 RID: 12484 RVA: 0x000866A8 File Offset: 0x000848A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnhanceCommonRogueBuffScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueBuff_ != null)
			{
				if (this.rogueBuff_ == null)
				{
					this.RogueBuff = new RogueCommonBuff();
				}
				this.RogueBuff.MergeFrom(other.RogueBuff);
			}
			if (other.IsSuccess)
			{
				this.IsSuccess = other.IsSuccess;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060030C5 RID: 12485 RVA: 0x00086724 File Offset: 0x00084924
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060030C6 RID: 12486 RVA: 0x00086730 File Offset: 0x00084930
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 66U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.IsSuccess = input.ReadBool();
						}
					}
					else
					{
						if (this.rogueBuff_ == null)
						{
							this.RogueBuff = new RogueCommonBuff();
						}
						input.ReadMessage(this.RogueBuff);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001333 RID: 4915
		private static readonly MessageParser<EnhanceCommonRogueBuffScRsp> _parser = new MessageParser<EnhanceCommonRogueBuffScRsp>(() => new EnhanceCommonRogueBuffScRsp());

		// Token: 0x04001334 RID: 4916
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001335 RID: 4917
		public const int RogueBuffFieldNumber = 8;

		// Token: 0x04001336 RID: 4918
		private RogueCommonBuff rogueBuff_;

		// Token: 0x04001337 RID: 4919
		public const int IsSuccessFieldNumber = 14;

		// Token: 0x04001338 RID: 4920
		private bool isSuccess_;

		// Token: 0x04001339 RID: 4921
		public const int RetcodeFieldNumber = 5;

		// Token: 0x0400133A RID: 4922
		private uint retcode_;
	}
}
